<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='数据字典'}}
{{assign var="app" value='database'}}
{{assign var="act" value='schema'}}
{{assign var="td" value='8'}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
</head>
<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
    <div id="content">

    <form name='form' class="ajaxSubmit" action="index.php?app={{$app}}" method="post">
    <table class="table table-bordered">
        <tr class="thead">
          <td colspan="{{$td}}">
              ◆ {{$title}}管理 －> 列表
          </td>
        </tr>
        {{if !$list}}
        <tr class="noline"><td colspan="{{$td}}" class="result_empty"></td></tr>
        {{else}}
        <tr class="ttitle">
            <th>表名</th>
            <th>备注</th>
            <th width="120">引擎 </th>
            <th width="120">数据量</th>
            <th width="120">数据大小</th>
            <th width="100">字符集</th>
        </tr>
        <tbody>
            {{foreach from=$list item=val key=key}}
            <tr>
                <td><a href="index.php?app={{$app}}&act=detail&name={{$val.name}}&iframe=true" class="a iframe">{{$val.name}}</a></td>
                <td>{{$val.comment}}</td>
                <td>{{$val.engine}}</td>
                <td>{{$val.rows}}</td>
                <td>{{$val.data_length|getFileSize}}</td>
                <td>{{$val.collation}}</td>
            </tr>
            {{/foreach}}
        </tbody>
        {{/if}}
    </table>
    </form>
</div>
</div>

</body>
</html>